import { createRouter, createWebHistory } from 'vue-router';
import Login from '@/views/Login.vue';
import Medical from '@/views/medical/Medical.vue';
import SmartQA from '@/views/medical/SmartQA.vue';
import MedicalRecords from '@/views/medical/MedicalRecords.vue';
import HealthHelper from '@/views/healthHelper/healthHelper.vue';
import PsychologyText from '@/views/psychology/psychologyText.vue';
import LoseWeight from '@/views/loseWeight/loseWeight.vue';
import stcokMain from '@/views/stcok/stcokMain.vue';
import InvestmentEducation from '@/views/investmentEducation/investmentEducation.vue'
import InvestmentProfile from '@/views/investmentEducation/profile.vue'
import InvestmentChat from '@/views/investmentEducation/chat.vue'
import InvestmentKnowledge from '@/views/investmentEducation/knowledge.vue'
import ProtocolParsing from '@/views/protocolparsing/protocolparsing.vue'

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login,
  },
  {
    path: '/medical',
    name: 'Medical',
    component: Medical,
    children: [
      {
        path: 'qa',
        name: 'SmartQA',
        component: SmartQA,
      },
      {
        path: 'record',
        name: 'MedicalRecords',
        component: MedicalRecords,
      },
    ],
  },
  {
    path:'/healthHelper',
    name: 'HealthHelper',
    component: HealthHelper,
    children: [
      {
        path:'healthHelper',
        name:'healthHelper',
        component: HealthHelper,
      },
    ],
  },
  {
    path: '/psychology',
    name: 'psychologyText',
    component: PsychologyText,
  },
  {
    path:'/loseWeight',
    name:'loseWeight',
    component:LoseWeight,
  }
  ,
  {
    path:'/stcok/stcokMain',
    name:'stcok',
    component:stcokMain
    
  },
  {
    path: '/investmentEducation',
    name: 'InvestmentEducation',
    component: InvestmentEducation,
    children: [
      {
        path: 'profile',
        name: 'InvestmentProfile',
        component: InvestmentProfile
      },
      {
        path: 'chat',
        name: 'InvestmentChat',
        component: InvestmentChat
      },
      {
        path: 'knowledge',
        name: 'InvestmentKnowledge',
        component: InvestmentKnowledge
      }
    ]
  },
  {
    path: '/protocolparsing',
    name: 'ProtocolParsing',
    component: ProtocolParsing
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
